import Layout from "@/layout";

const purchasingRouter = {
  path: "/purchasing/planned",
  component: Layout,
  redirect: "noRedirect",
  name: "purchasing",
  alwaysShow: true,
  hidden: false,
  meta: {
    title: "采购管理",
    abbre: "采购",
    icon: "left_menu_purchasing",
    navigation: "/purchasing",
    id: "407"
  },
  children: [
    {
      path: "/purchasing/planned",
      component: () => import("@/views/purchasing/purchasingPlanned"),
      name: "purchasing_planned",
      hidden: false,
      meta: {
        title: "计划采购",
        noCache: true,
        navigation: "/purchasing/planned",
        icon: "menu_big_data"
      }
    },
    {
      path: "/purchasing/group",
      component: () => import("@/views/purchasing/purchasingGroup"),
      name: "purchasing_group",
      hidden: false,
      meta: {
        title: "采购分组",
        noCache: true,
        navigation: "/purchasing/group",
        icon: "menu_big_data"
      }
    },
    {
      path: "/purchasing/group/maintain/:id",
      component: () => import("@/views/purchasing/purchasingGroup_maintain"),
      name: "purchasing_group_maintain",
      hidden: true,
      meta: {
        title: "采购维护",
        bread: "采购分组,采购维护",
        noCache: true,
        navigation: "/purchasing/group",
        icon: "menu_big_data"
      }
    },
    {
      path: "/purchasing/relation",
      component: () => import("@/views/purchasing/purchasingRelation"),
      name: "purchasing_relation",
      hidden: false,
      meta: {
        title: "关系维护",
        noCache: true,
        navigation: "/purchasing/relation",
        icon: "menu_big_data"
      }
    },
    {
      path: "/purchasing/purchase",
      component: () => import("@/views/purchasing/purchasingPurchase"),
      name: "purchasing_purchase",
      hidden: false,
      meta: {
        title: "采购单",
        noCache: false,
        navigation: "/purchasing/purchase",
        icon: "menu_big_data"
      }
    },
    {
      path: "/purchasing/purchase/add",
      component: () => import("@/views/purchasing/purchasingPurchase_add"),
      name: "purchasing_purchase_add",
      hidden: true,
      meta: {
        title: "备货采购",
        bread: "采购单,备货采购",
        noCache: true,
        navigation: "/purchasing/purchase",
        icon: "menu_big_data"
      }
    },
    {
      path: "/purchasing/purchase/edit/:id",
      component: () => import("@/views/purchasing/purchasingPurchase_edit"),
      name: "purchasing_purchase_edit",
      hidden: true,
      meta: {
        title: "编辑采购单",
        bread: "采购单,编辑采购单",
        noCache: true,
        navigation: "/purchasing/purchase",
        icon: "menu_big_data"
      }
    },
    {
      path: "/purchasing/purchase/record/:id",
      component: () => import("@/views/purchasing/purchasingPurchase_record"),
      name: "purchasing_purchase_record",
      hidden: true,
      meta: {
        title: "录单",
        bread: "采购单,录单",
        noCache: true,
        navigation: "/purchasing/purchase",
        icon: "menu_big_data"
      }
    },
    {
      path: "/purchasing/purchase/see/:id",
      component: () => import("@/views/purchasing/purchasingPurchase_see"),
      name: "purchasing_purchase_see",
      hidden: true,
      meta: {
        title: "查看采购单",
        bread: "采购单,查看采购单",
        noCache: true,
        navigation: "/purchasing/purchase",
        icon: "menu_big_data"
      }
    },

    {
      path: "/purchasing/purchase/entry/:id",
      component: () => import("@/views/purchasing/purchasingPurchase_entry"),
      name: "purchasing_purchase_entry",
      hidden: true,
      meta: {
        title: "入库单",
        bread: "采购单,查看入库单",
        noCache: true,
        navigation: "/purchasing/purchase",
        icon: "menu_big_data"
      }
    },
    {
      path: "/purchasing/purchase/entry_see/:id",
      component: () => import("@/views/purchasing/purchasingPurchase_entry_see"),
      name: "purchasing_purchase_entry_see",
      hidden: true,
      meta: {
        title: "采购单详情",
        bread: "采购单,查看入库单,详情",
        noCache: true,
        navigation: "/purchasing/purchase",
        icon: "menu_big_data"
      }
    },
    {
      path: "/purchasing/buyer",
      component: () => import("@/views/purchasing/purchasingBuyer"),
      name: "purchasing_buyer",
      hidden: false,
      meta: {
        title: "采购员",
        noCache: true,
        navigation: "/purchasing/buyer",
        icon: "menu_big_data"
      }
    },
    {
      path: "/purchasing/supplier",
      component: () => import("@/views/purchasing/purchasingSupplier"),
      name: "purchasing_supplier",
      hidden: false,
      meta: {
        title: "供应商",
        noCache: true,
        navigation: "/purchasing/supplier",
        icon: "menu_big_data"
      }
    },
    {
      path: "/purchasing/return",
      component: () => import("@/views/purchasing/purchasingReturn"),
      name: "purchasing_return",
      hidden: false,
      meta: {
        title: "采购退货",
        noCache: true,
        navigation: "/purchasing/return",
        icon: "menu_big_data"
      }
    },
    {
      path: "/purchasing/return/add",
      component: () => import("@/views/purchasing/purchasingReturn_add"),
      name: "purchasing_return_add",
      hidden: true,
      meta: {
        title: "添加退货单",
        bread: "采购退货,添加退货单",
        noCache: true,
        navigation: "/purchasing/return",
        icon: "menu_big_data"
      }
    },
    {
      path: "/purchasing/return/edit/:id",
      component: () => import("@/views/purchasing/purchasingReturn_edit"),
      name: "purchasing_return_edit",
      hidden: true,
      meta: {
        title: "审核退货单",
        bread: "采购退货,审核退货单",
        noCache: true,
        navigation: "/purchasing/return",
        icon: "menu_big_data"
      }
    },
    {
      path: "/purchasing/return/see/:id",
      component: () => import("@/views/purchasing/purchasingReturn_see"),
      name: "purchasing_return_see",
      hidden: true,
      meta: {
        title: "查看退货单",
        bread: "采购退货,查看退货单",
        noCache: true,
        navigation: "/purchasing/return",
        icon: "menu_big_data"
      }
    },
    {
      path: "/purchasing/localvegetable",
      component: () => import("@/views/purchasing/purchasingLocalVegetable"),
      name: "purchasing_localvegetable",
      hidden: false,
      meta: {
        title: "本地菜",
        noCache: true,
        navigation: "/purchasing/localvegetable",
        icon: "menu_big_data"
      }
    }
  ]
};

export default purchasingRouter;
